package com.stu.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @author MI
 * @ClassName PostDTO.java
 * @createTime 2021年12月29日 17:52:00
 */
@Data
public class PostDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    private String name;
    private String data;

   /* @JsonProperty("data")
    public void setData(final String aimid) {
        System.out.println(StringUtils.center("set", 51, "*"));
        System.out.println(aimid);
        this.data = aimid;
    }
*/

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.NO_CLASS_NAME_STYLE);
    }
}
